<!DOCTYPE HTML>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>XD首页</title>
    <link rel="stylesheet" type="text/css" href="circle_style.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
</head>
<body>
<header class="aui-bar aui-bar-nav aui-bar-light">
    <div  style="width:100%;float: left;background-color: #03a9f4">
        <a class="aui-pull-left aui-btn">
            <span class="aui-iconfont aui-icon-left" style="color: white;"></span>
        </a>
        <a class="aui-pull-right aui-btn aui-btn-outlined" style="float: right">
            <span class="aui-iconfont aui-icon-more" style="color: white;"></span>
        </a>
    </div>
</header>


<footer class="aui-bar aui-bar-tab"  id="circle_footer">
<div style="width: 90%;margin-left: 5%">
    <div class="aui-bar-tab-item" tapmode onclick="openStrategyRelease()">
        <div class="footerLabel"  >发表攻略</div>
    </div>
    <div class="aui-bar-tab-item" tapmode onclick="openAsking()">
        <div class="footerLabel footerBoarder">提问</div>
    </div>
    <div class="aui-bar-tab-item" tapmode onclick="openResourceUpload()">
        <div class="footerLabel">上传资源</div>
    </div>
</div>
</footer>

</body>
<script type="text/javascript" src="../../script/api.js" ></script>
<script type="text/javascript" src="../../script/aui-tab.js" ></script>
<script type="text/javascript">
    var footer_h = $api.offset($api.byId('circle_footer')).h;
    var circleName ;
    apiready = function(){
        api.parseTapmode();
        circleName = api.pageParam.name;
        api.openFrame({
            name: 'circle_index_frm',
            url: 'circle_index_frm.html',
            bounces:false,
            rect:{
                x:0,
                y:45,
                height:'auto',
                width:'auto',
                marginBottom:footer_h
            },
            pageParam:{
                circleN:circleName
            }
        });
    };
    function openStrategyRelease() {
        api.openWin({
            name:'circle_Strategy_release',
            url:'circle_Strategy_release.html'
        })
    }
    function openAsking() {
        api.openWin({
            name:'question_main_circle',
            url:'../QandA/question_main.html'
        })
    }
    function openResourceUpload() {
        api.openWin({
            name:'circle_resource_upload',
            url:'circle_resource_upload.html'
        })
    }
    function closeWin(name){
        api.closeWin();
    }


</script>
</html>